import request from '@/utils/request'

// 保存结算单列表
export function statementItemSave(data) {
  return request({
    url: '/business/item',
    method: 'post',
    data: data
  })
}

// 查询结算单明细列表
export function getStatementItemList(statementId) {
  return request({
    url: '/business/item?statementId=' + statementId,
    method: 'get'
  })
}

// 支付功能
export function pay(statementId) {
  return request({
    url: '/business/item/' + statementId,
    method: 'patch',
    headers:{'cmd':'pay'}
  })
}